import request from "@/util/request";
import {API_SITE} from "./_prefix";
/**
 * 登陆login
 */
export const login = ({ username, password }) => {
    return request(`${API_SITE}/login`, {
        method: "POST",
        body: {
            username: username || null,
            password: password || null
        }
    });
};